<!--
 * @Author: wangjh wangjiahui0710@163.com
 * @Date: 2024-07-10 09:19:29
 * @LastEditors: wangjh wangjiahui0710@163.com
 * @LastEditTime: 2024-07-11 15:43:10
 * @FilePath: \cip-admin\src\pages\company\information\equipment\components\sheet-item.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!-- 表格内容,此组件还用于生成导出文件,所以不应该依赖vue组件相关的上下文 -->
<script lang="ts" setup>
import { EQP_STATUS_OPTIONS, getEnumOptionsField } from "@/config/enum-options";

defineOptions({ name: "SheetItem" });
</script>

<template>
	<el-table-column label="序号" type="index" width="60" fixed="left" />
	<el-table-column label="设备名称" prop="name" />
	<el-table-column label="所属类型" prop="type" />
	<el-table-column label="设施编号" prop="eqpCode" />
	<el-table-column label="规格" prop="eqpSpecifications" />
	<el-table-column label="数量" prop="eqpNum" />
	<el-table-column label="使用日期" prop="useDate" />
	<el-table-column label="检验日期" prop="checkDate" />
	<el-table-column v-slot="{ row }" label="运行状态" prop="status">
		<span>
			{{ getEnumOptionsField(EQP_STATUS_OPTIONS, "label", row.status) }}
		</span>
	</el-table-column>
</template>
